package cn.lanqiao.service.impl;

import cn.lanqiao.dao.WordDao;
import cn.lanqiao.dao.impl.WordDaoImpl;
import cn.lanqiao.entity.ForgetWord;
import cn.lanqiao.entity.RememberWord;
import cn.lanqiao.entity.Word;
import cn.lanqiao.service.WordService;

public class WordServiceImpl implements WordService {
private WordDao wd = new WordDaoImpl();
	@Override
	public void saveRememberWord(RememberWord rw) {
		wd.saveRememberWord(rw);
		
	}

	@Override
	public int getWordId(String word) {
		int wordId = wd.getWordId(word);
		return wordId;
	}

	@Override
	public void saveForgetWord(ForgetWord fw) {
		wd.saveForgetWord(fw);
	}

	@Override
	public RememberWord getRememberWord(String account) {
		RememberWord rw = wd.getRememberWord(account);
		return rw;
	}

	@Override
	public ForgetWord getForgetWord(String account) {
		ForgetWord fw = wd.getForgetWord(account);
		return fw;
	}

	@Override
	public Word getWord() {
		Word w = wd.getWord();
		return w;
	}

	@Override
	public void deleteWord(String account) {
		wd.deleteWord(account);
	}

}
